|
Book details / order |
ANDROID APPLICATION TESTING GUIDE BUILD INTENSIVELY TESTED AND BUG FREE ANDROID APPLICATIONS |
It doesn't matter how much time you invest in android design, or even how careful you are when programming; mistakes are inevitable and bugs will appear. this book will help you minimize the impact of these errors in your android project and increase your development productivity. it will show you the problems that are easily avoided, to help get you quickly to the testing stage.
android application testing guide is the first and only book providing a practical introduction to the most common available techniques, frameworks, and tools to improve the development of your android applications. clear, step-by-step instructions show how to write tests for your applications and assure quality control using various methodologies.
the author's experience in applying application testing techniques to real world projects enables him to share insights on creating professional android applications.
the book starts by introducing test driven development, which is an agile component of the software development process and a technique where you will tackle bugs early on. from the most basic unit tests applied to a sample project to more sophisticated performance tests, this book provides a detailed description of the most widely used techniques in the android testing world in a recipe-based approach.
the author has extensive experience of working on various development projects throughout his professional career. all this research and knowledge has helped create a book that will serve as a useful resource to any developer navigating the world of android testing.
what you will learn from this book :
apply testing techniques and utilize tools to improve android application development
learn the nuances of unit and functional testing and apply them to your android projects
create sample android test projects to try out your testing techniques
understand different development methodologies such as test driven development and behavior driven development
test different components such as activities, contentprovider, services, and so on that make up an android application
apply the continuous integration technique for ultimate application quality control
improve application performance by analyzing the results returned from performance tests
expose your application to a wide range of conditions and configurations to simulate real life network conditions and detect problems in the application
approach
adroid application testing guide is a highly detailed book which gives step-by-step examples for a great variety of real-world cases, providing professional guidelines and recommendations that will be extremely valuable for optimizing your development time and resources. in the chapters you will find an introduction to specific testing techniques, and tools for specific situations.
who this book is written for
if you are an android developer looking to test your applications or optimize your application development process, then this book is for you. no previous experience in application testing is required.
about the author
diego torres milano has been involved with the android platform since its inception, when he started exploring and researching the platform’s possibilities, mainly in the areas of user interfaces, unit and acceptance tests, and test driven development. this is reflected from a number of articles published mainly on his personal blog (dtmilano.blogspot.com) and his participation as a lecturer in various conferences and courses such as mobile dev camp 2008 in amsterdam (netherlands), and japan linux symposium 2009 (tokyo), droidcon 2009 (london), skillsmatter 2009 (london). he has also authored android training courses delivered to various companies in europe.
diego is the founder and developer of several open source projects, mainly cult universal linux thin project, autoglade, gnome-tla, jglade, and has been contributing to various linux distributions such as redhat, fedora, and ubuntu.
apart from giving presentations in linux world, linuxtag, guadec es, university of buenos aires, etc, diego has been developing software, participating in open source projects and advising companies worldwide for more than 15 years.
chapter 1: getting started with testing
brief history
software bugs
how bugs severely affect your projects
why, what, how, and when to test
what to test
activity lifecycle events
database and filesystem operations
physical characteristics of the device
types of tests
unit tests
the test fixture
the setup() method
the teardown() method
test preconditions
the actual tests
integration tests
functional or acceptance tests
test case scenario
performance tests
system tests
android testing framework
instrumentation
test targets
summary
chapter 2: testing on android
junit
creating the android main project
creating the android test project
package explorer
creating a test case
special methods
test annotations
running the tests
running all tests from eclipse
running a single test case from eclipse
running from the emulator
running tests from the command line
running all tests
running tests from a specific test case
running a specific test by name
running specific tests by category
running performance tests
dry run
debugging tests
other command-line options
summary
chapter 3: building blocks on the android sdk
the demonstration application
assertions in depth
custom messages
static imports
view assertions
even more assertions
the touchutils class
mock objects
mockcontext overview
the isolatedcontext class
alternate route to file and database operations
the mockcontentresolver class
the testcase base class
the no-argument constructor
the given name constructor
the setname() method
the androidtestcase base class
the assertactivityrequirespermission() method
description
example
the assertreadingcontenturirequirespermission method
description
example
the assertwritingcontenturirequirespermission() method
description
example
instrumentation
the activitymonitor inner class
example
the instrumentationtestcase class
the launchactivity and launchactivitywithintent method
the sendkeys and sendrepeatedkeys methods
the runtestonuithread helper method
the activitytestcase class
the scrubclass method
the activityinstrumentationtestcase2 class
the constructor
the setup method
the teardown method
the testpreconditions method
the providertestcase2<t> class
the constructor
example
the servicetestcase<t>
the constructor
the testsuitebuilder.failedtocreatetests class
using external libraries in test projects
summary
chapter 4: test driven development
getting started with tdd
writing a test case
running all tests
refactoring the code
what is the advantage?
understanding the requirements
creating a sample project—the temperature converter
the list of requirements
user interface concept design
creating the projects
creating the temperatureconverteractivitytests project
creating the fixture
test preconditions
creating the user interface
testing the existence of the user interface components
getting the ids defined
translating requirements to tests
empty fields
view properties
screen layout
adding functionality
temperature conversion
the editnumber class
temperatureconverter unit tests
the editnumber tests
the temperaturechangewatcher class
more temperatureconverter tests
the inputfilter tests
viewing our final application
summary
chapter 5: android testing environment
creating android virtual devices
running avds from the command line
headless emulator
disabling the keyguard
cleaning up
terminating the emulator
additional emulator configurations
simulating network conditions
additional qemu options
running monkey
client-server monkey
test scripting with monkeyrunner
getting test screenshots
record and playback
summary
chapter 6: behavior driven development
brief history
given, when, then
fitnesse
running fitnesse from the command line
creating a temperatureconvertertests subwiki
adding child pages to the subwiki
adding the acceptance test fixture
adding the supporting test classes
givwenzen
creating the test scenario
summary
chapter 7: testing recipes
android unit tests
testing activities and applications
applications and preferences
the renamingmockcontext class
the temperatureconverterapplicationtests class
testing activities
testing files, databases, and contentproviders
the browserprovider tests
testing exceptions
testing local and remote services
extensive use of mock objects
importing libraries
the testtextchanged test
introducing hamcrest
hamcrest matchers
the hastostring matcher
testing views in isolation
testing parsers
android assets
the parser activity
the parser test
testing for memory leaks
summary
chapter 8: continuous integration
building android applications manually using ant
git—the fast version control system
creating a local git repository
continuous integration with hudson
installing and configuring hudson
creating the jobs
obtaining android test results
summary
chapter 9: performance testing and profiling
ye olde logge method
performance tests in android sdk
launching the performance test
creating the launchperformancebase instrumentation
creating the temperatureconverteractivitylaunchperformance class
running the tests
using the traceview and dmtracedump platform tools
microbenchmarks
caliper microbenchmarks
creating the temperatureconverterbenchmark project
running caliper
summary
chapter 10: alternative testing tactics
building android from source
code coverage
emma features
system requirements
downloading the android source code
installing repo
creating the working copy
the building steps
temperatureconverter code coverage
generating code coverage analysis report
covering the restoring the instance state
covering the exceptions
bypassing access restrictions
covering the options menu
the undocumented ant coverage target
introducing robotium
downloading robotium
configuring the project
creating the test cases
the testfahrenheittocelsiusconversion() test
the testoncreateoptionsmenu() revisited
testing on host's jvm
creating the temperatureconverterjvmtest project
comparing the performance gain
adding android to the picture
introducing robolectric
installing robolectric
creating a new java project
writing some tests
summary
Author : Diego torres milano
Publication : Packt publication
Isbn : 9789350234853
Store book number : 109
NRS 840.00
|
|
|
|
|
|
|
|
|
|